package aop;

import aop.bean.Fish;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class PointCutApp {
    public static void main(String[] args) {
        final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("aop\\xml\\beansForAspectj.xml");
        final Fish fish = (Fish) context.getBean("fish");
        fish.getAge();
        fish.getName();
    }
}
